package framework.view;

import java.util.Observer;

import framework.clientmodel.*;
import framework.controller.*;

public abstract class View implements Observer {
	Model model;
	Controller controller;
	
	public View(Model model) {
		this.model = model;
		model.addObserver(this);
	} 

	public Model getModel() {
		return model;
	}
	
	/**
	 * addController
	 * puede o no tener controlador
	 */
	public void setController(Controller cp){
		controller = cp;
	}

	public Controller getController() {
		return controller;
	}

//	public abstract void update(); 
	
}
